package net.j4love.sjdbc.dao;

import net.j4love.sjdbc.entity.User;
import net.j4love.sjdbc.vo.UserOrderVO;

import java.util.List;

/**
 * @author he peng
 * @create 2017/9/12 18:29
 * @see
 */
public interface UserDAO {

    int insert(User record);

    User selectById(Long id);

    int deleteById(Long id);

    int updateById(User record);

    List<User> selectAll();

    List<User> selectAllOrderByCreateTime();

    UserOrderVO selectUserOrderByUserId(Long id);

    List<UserOrderVO> selectAllUserOrder();
}
